package com.dean.utils;

import java.io.*;
import java.time.LocalDateTime;

/**
 * @author dean
 * @version 1.0
 * @description: mac 并表字段扫描
 * @date 2024/6/28 16:50
 */
public class ScannerMac {

    public static void main(String[] args){
        // 加载配置文件
        // 指定扫描目录
        // 指定导出文件



        File file = new File("F:\\DFZQ\\vat\\trunk\\docs\\10-环境部署\\1.4sql");
        File [] lists = file.listFiles();
        for (File list : lists) {
            System.out.println(LocalDateTime.now());
           try(FileReader fileReader = new FileReader(list);
               BufferedReader reader = new BufferedReader(fileReader)) {
               String line;
               int num=0;
               while((line=reader.readLine())!=null){
                   line = reader.readLine();
                   num++;
                   System.out.println(num+">>>"+line);
               }
               System.out.println(LocalDateTime.now());
           } catch (FileNotFoundException e) {
               throw new RuntimeException(e);
           } catch (IOException e) {
               throw new RuntimeException(e);
           }
        }
    }
}
